var ItemsView = FetchableView.extend({
	tagName:'ul',
	className: 'listItem',
	
	collection: new ItemsCollection(),
	initialize: function(p, parent){
		this.par = parent;
	},
	
	
	
	render: function () {
		var lastCategory;
		for (var i = 0; i < this.collection.length; i++) {
			var record = this.collection.at(i);
			if ((record.get('categoryName')) != lastCategory) {
				var categoryView = new CategoryView({displayName: record.get('categoryName')});
				lastCategory = record.get('categoryName');
				this.$el.append(categoryView.el);
			}
			itemView = new ItemView({model: record, parent: this.par});
			this.$el.append(itemView.el);
		}
    }
});